# 重定向
from django.http import HttpResponse
from django.shortcuts import redirect
from django.urls import reverse


def foo1(request):

    print("这是函数1")

    return HttpResponse("这是函数1")


def foo2(request):

    print("这是函数2")

    return HttpResponse("这是函数2")


def foo3(request):

    print("这是函数3")

    url = reverse('zz:fo1')

    return redirect(url)